import request from '@/router/axios';
import {baseUrl} from "@/config/env";

export const setState = (row) => {
  return request({
    url: baseUrl + '/api-rtc/rtc/setState',
    method: 'post',
    data: row
  })
}

export const enterRoom = (row) => {
  return request({
    url: baseUrl + '/api-rtc/rtc/enter',
    method: 'post',
    data: row
  })
}

export const quitRoom = (row) => {
  return request({
    url: baseUrl + '/api-rtc/rtc/quit',
    method: 'post',
    data: row
  })
}
